/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.blue.game;

import com.blue.jogl.JOGLWindow;

/**
 *
 * @author kelvio.matias
 */
public final class Game {
              
    private Game() {        
    }
    
    public static Game getInstance() {
        return GameHolder.INSTANCE;
    }
    
    private static class GameHolder {
        private static final Game INSTANCE = new Game();
    }


    public void setGameCallBack(GameCallBack gameCallBack) {        
        JOGLWindow.getInstance().setCallBack(gameCallBack.getCallBack());
        JOGLWindow.getInstance().setLocationRelativeTo(null);
        JOGLWindow.getInstance().setVisible(true);
    }                
}
